<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML >

<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>文件共享</title>

<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<script type="text/javascript" src="js/jQuery.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<style type="text/css">
body {
	padding-top: 40px;
	background-color: #3D71BC;
	background-image: url("img/pro-bg1.jpg");
	background-repeat: no-repeat;
}

.body-bgc {
	margin-top: 30px;
	padding-top: 20px;
	background-color: #bod4e5;
	background: url("img/wash-white-30.png") repeat scroll 0 0 transparent;
}

.con {
	margin-left: 100px;
}

.con-foot {
	margin: 25px 100px;;
}
</style>

</head>
<body>
	<%@ include file="include/topbar.jsp"%>

	<!--网页正文-->


	<div class="container well body-bgc">

		<div>
			<h3>添加一个新文件</h3>
		</div>
		<hr />
		<!-- 下半部分 -->

		<div class="span6 con">

			<form action="savefiletype.action?id=${id}&user=${user}" method="post">
				<label>输入文件夹</label> <input type="text" class="input-xlarge span5"
					name="filetype.name" /> 
				
				<div class="con-foot ">
				
					<a href="filetype.action" class="btn ">返回</a>
					<button type="submit" class="btn btn-success"
						style="margin-left:50px;">
						<i class="icon-th-large icon-white"></i>确定
					</button>
				</div>
			</form>

		</div>
	</div>
	

</body>

<script type="text/javascript">


	$("input[name='filetype.name']").popover({
			title : "信息提示",
			content : "目标名称不能为空",
			trigger : "manual"
		});

		$("input[name='filetype.name']").click(function() {
			$(this).popover("hide");
		});

		
		$("button").click(function() {
			if ($("input[name='filetype.name']").val() == "") {
				$("input[name='filetype.name']").popover("show");
				return false;
			}

			$("form").submit();

		});

</script>
</html>
